function [Rate_Index,Interleaver_Index] = ...
    get_info(RX_IN_Filtered,Oversample, Original_RX_IN, EsNoRatio, Original_Start,...
    N1, N2,First_Sample)




global Sync_Preamble Mini_Probe_Plus LUT_D

% ====================================================================
% Estimation And Equalization of the 41 symbols that hold the information using Linear equalizer// by MH
% ====================================================================

Training_Length = 31;
Data_Length = 41;
estimation_length = 31*Oversample;
ChLength = 6*Oversample;
DataAfter_Length = 31;

N = N1 + N2 + 1;

Start = First_Sample + 184 * Oversample;
Original_Start_used = (Original_Start + 1) + (184 + 31) * Oversample;

OUT_Symbols = MMSE_DFE_Equalizer(RX_IN_Filtered, Original_RX_IN, Oversample, EsNoRatio, 4800,...
    1, N1, N2, Training_Length, Data_Length, estimation_length, ChLength, DataAfter_Length, Start, Original_Start_used);

%----------------------------- Rate & Interleaver Size Information Extraction -------------------------------------%
Info_Symbols = HF_Demodulate(OUT_Symbols, 4800);

SubtractionSeq = [0 4 0 4 0 0 4 4 0 0 0 0 0];

% get the most value repeated in Info_Symbols(x:x+12) - SubtractionSeq
D0_values = Info_Symbols(2:14) - SubtractionSeq;
D1_values = Info_Symbols(15:27) - SubtractionSeq;
D2_values = Info_Symbols(28:40) - SubtractionSeq;

D0 = mode(D0_values);           % mode is used to get the most frequently value in D0_values // MH
D1 = mode(D1_values);
D2 = mode(D2_values);

LUT_D0 = reshape(LUT_D(:,:,1),1,[]) ;
LUT_D1 = reshape(LUT_D(:,:,2),1,[]) ;
LUT_D2 = reshape(LUT_D(:,:,3),1,[]) ;

D0_loc = find(LUT_D0 == D0);
D1_loc = D0_loc(find(LUT_D1(D0_loc) == D1));
D2_loc = D1_loc(find(LUT_D2(D1_loc) == D2));

Data_Rates = [3200 4800 6400 8000 9600 3200 4800 6400 8000 9600 3200 4800 6400 8000 9600 3200 4800 6400 8000 9600 3200 4800 6400 8000 9600 3200 4800 6400 8000 9600];
Interleaver_Lengths = [1 1 1 1 1 3 3 3 3 3 9 9 9 9 9 18 18 18 18 18 36 36 36 36 36 72 72 72 72 72];

if(D0 == 6 && D1 == 6 && D2 == 2)
    Rate_Index = 12800;
    Interleaver_Index = 1;
else
    Rate_Index = Data_Rates(D2_loc);
    Interleaver_Index = Interleaver_Lengths(D2_loc);
end


end